#ifndef LEND_H
#define LEND_H

#include <QWidget>
#include <QStandardItemModel>
#include <QTableWidget>
#include <QComboBox>
#include <QMessageBox>
#include <QPushButton>

#include "sqlite.h"
#include "msgdialog.h"
#include "lendconform.h"
#include "tipwidget.h"
#include "lendmsg.h"
#include "addbook.h"
#include "bookmsg.h"
#include "sim900a.h"

namespace Ui {
class Lend;
}

class Lend : public QWidget
{
    Q_OBJECT

public:
    explicit Lend(User_t ,int flag, QWidget *parent = 0);
    ~Lend();

    User_t user;
    int flag;

public slots:
    void slotGetTableItem(QTableWidgetItem *item);
    void itemClick(QTableWidgetItem*);
private slots:
    void on_pushButton_clicked();
    void indexChange(QString);

    void on_add_pushButton_clicked();

    void updateBook();
private:
    Ui::Lend *ui;

signals:
    void deleteMoney(int);
    void sigMoney(int);
};

#endif // LEND_H
